# --! coding=utf-8 !--
# coding=utf-8
# Copyright (c) [2025] [2578713815@qq.com]
# [AHPU_EQM] is licensed under Mulan PSL v2.
"""
检测数据文件完整性\n
author: <2578713815@qq.com>\n
"""

import sys
import os
from CONFIG import settings

print(">>> Checking config files...")
lack_files = []
for i in settings.CHECK_FILES:
	if not os.path.exists(i):
		lack_files.append(i)
if len(lack_files) > 0:
	for j in lack_files:
		print(">>> Lack file: {}".format(j))
	input('>>> Press Enter to exit...')
	sys.exit(0)
else:
	print(">>> Checking finish.")
